
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.PigHouse;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage PigHouse entities.
 * 
 */
public interface PigHouseDAO extends JpaDao<PigHouse> {

	/**
	 * JPQL Query - findPigHouseByMemo
	 *
	 */
	public Set<PigHouse> findPigHouseByMemo(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByMemo
	 *
	 */
	public Set<PigHouse> findPigHouseByMemo(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByRfid
	 *
	 */
	public Set<PigHouse> findPigHouseByRfid(String rfid) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByRfid
	 *
	 */
	public Set<PigHouse> findPigHouseByRfid(String rfid, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByNumber
	 *
	 */
	public Set<PigHouse> findPigHouseByNumber(Integer number) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByNumber
	 *
	 */
	public Set<PigHouse> findPigHouseByNumber(Integer number, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByRfidContaining
	 *
	 */
	public Set<PigHouse> findPigHouseByRfidContaining(String rfid_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByRfidContaining
	 *
	 */
	public Set<PigHouse> findPigHouseByRfidContaining(String rfid_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllPigHouses
	 *
	 */
	public Set<PigHouse> findAllPigHouses() throws DataAccessException;

	/**
	 * JPQL Query - findAllPigHouses
	 *
	 */
	public Set<PigHouse> findAllPigHouses(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByMemoContaining
	 *
	 */
	public Set<PigHouse> findPigHouseByMemoContaining(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByMemoContaining
	 *
	 */
	public Set<PigHouse> findPigHouseByMemoContaining(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByPrimaryKey
	 *
	 */
	public PigHouse findPigHouseByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseByPrimaryKey
	 *
	 */
	public PigHouse findPigHouseByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseById
	 *
	 */
	public PigHouse findPigHouseById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigHouseById
	 *
	 */
	public PigHouse findPigHouseById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

}